package com.scott.crm.clazz.dao;

import com.scott.crm.clazz.bean.ClazzBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/*
 * 方法描述:
 * @author: 李伟伟
 * @date: 2021/11/30 12:11
 */
@Repository
public interface ClazzDao extends BaseMapper<ClazzBean> {

    Integer addClazz(ClazzBean clazzBean);

    List<ClazzBean> findClazzList(@Param("begin") Integer begin, @Param("end") Integer end);

    /*
     * 方法描述:删除班级
     * @author: 尹泳超
     * @date: 2021/12/4 15:04
     * @params: [ids]
     * @returns:java.lang.Integer
     */
    Integer deleteClazz (Integer ids);

    List<ClazzBean> selectAllClazz();

    List<ClazzBean> selectMessageById(Integer id);

    /*
     * 方法描述:统计班级的人数
     * @author: 尹泳超
     * @date: 2021/12/4 15:03
     * @params: [classId]
     * @returns:java.lang.Integer
     */
    Integer count (Integer classId);

}
